package com.pxxy.springboot.webcase.service.impl;

import com.pxxy.springboot.webcase.entity.User;
import com.pxxy.springboot.webcase.mapper.UserMapper;
import com.pxxy.springboot.webcase.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/******************
 * @Author yejf
 * @Description TODO
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userDao;

    @Override
    public User login(String userName, String pwd) {
        //
        return userDao.findByUserName(userName);
    }

    @Override
    public void register(User user) {
        //
        userDao.save(user);
    }
}
